<template>
	<view>
		<view class="nav">
			<uni-nav-bar leftWidth="750rpx"   left-icon="back" leftText="粉丝" @clickLeft="back"></uni-nav-bar>
		</view>
		<view class="list" v-for="v in fanslist">
			<view>
				<image :src="imageUrl+v.avatarPath"></image>
				<view>{{v.nickName}}12354565454</view>	
			</view>
		</view>
	</view>
</template>

<script>
import http from '@/utils/http.js'
	export default {
		data() {
			return {
				fanslist:[
					{
						fansname:'好人一个',
						fansimage:''
					},
					{
						fansname:'坏人一个',
						fansimage:''
					}
				],
				imageUrl:"http://mnxc.xyz:8080/common/download?name=",	
				
				
			}
		},
		onShow(){
			this.show()
		},
		methods: {
			show(){
			
				http({
					
					url:`/user/getFans`,
					params:{
						id:1
					},
					success:(res)=>{
						this.fanslist=res.data.data
						console.log(res)
						console.log('123')
					}
				})
				
			},
			
			
			
			
			
			
			
			
			
			
			back(){
				uni.switchTab({
					url:'/pages/mine/mine'
				})
			}
		}
	}
</script>

<style>
.nav{
	
	

	height: 140rpx;
	width: 750rpx;
	display: flex;

	align-items: center;
}
.list{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-right: 20rpx;
}
.list>view:nth-child(1){
	display: flex;
	justify-content: space-around;
	align-items: center;
}


.list{
	margin-top: 10rpx;
	text-align: center;
	/* color: aliceblue; */
}
.list image{
	margin-right: 10px;
	width: 50px;
	height: 50px;
}
</style>
